package util;

import db.DatabaseManager;

public class DatabaseManagerTest {
    public static void main(String[] args) {
        testInsertTuple();
        testInsertDataFlowTime();
    }

    private static void testInsertTuple() {
        try {
            DatabaseManager.insertFlowResult("testApk", "COND", 1, 1, 1,
                    1, 1, 1, "testTuples",
                    "testData", "testEntity","testPermissions");
            System.out.println("testInsertTuple passed");
        } catch (Exception e) {
            System.err.println("testInsertTuple failed");
            e.printStackTrace();
        }
    }

    private static void testInsertDataFlowTime() {
        try {
            DatabaseManager.insertDataFlowTime("testApk", "COND", 1.0);
            System.out.println("testInsertDataFlowTime passed");
        } catch (Exception e) {
            System.err.println("testInsertDataFlowTime failed");
            e.printStackTrace();
        }
    }
}